import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
        PriorityQueue priorityQueue = new PriorityQueue();
        int[] array = {4,6,1,2,5,3};
        priorityQueue.createHeap(array);
        System.out.println(Arrays.toString(array));
        while(!priorityQueue.isEmpty()) {
            System.out.print(priorityQueue.peekHeap()+ " ");
            priorityQueue.pollHeap();
        }
    }
}
